package com.ruoyi.xiaoshou.mapper;

import java.util.List;
import com.ruoyi.xiaoshou.domain.SaleBackRequestDetail;
import org.apache.ibatis.annotations.Param;

/**
 * 销售退货申请详情Mapper接口
 * 
 * @author lmj
 * @date 2024-10-25
 */
public interface SaleBackRequestDetailMapper 
{
    int deleteSaleBackRequestDetailBySaleBackRequest(String saleBackRequestCode);
    int updDetailCode(String saleBackRequestCode);
    /**
     * 查询销售退货申请详情
     * 
     * @param id 销售退货申请详情主键
     * @return 销售退货申请详情
     */
    public SaleBackRequestDetail selectSaleBackRequestDetailById(Integer id);

    /**
     * 查询销售退货申请详情列表
     * 
     * @param saleBackRequestDetail 销售退货申请详情
     * @return 销售退货申请详情集合
     */
    public List<SaleBackRequestDetail> selectSaleBackRequestDetailList(SaleBackRequestDetail saleBackRequestDetail);
    public List<SaleBackRequestDetail> getSaleBackRequestDetailByCodes(String[] codeArray);
    /**
     * 新增销售退货申请详情
     * 
     * @param saleBackRequestDetail 销售退货申请详情
     * @return 结果
     */
    public int insertSaleBackRequestDetail(SaleBackRequestDetail saleBackRequestDetail);

    /**
     * 修改销售退货申请详情
     * 
     * @param saleBackRequestDetail 销售退货申请详情
     * @return 结果
     */
    public int updateSaleBackRequestDetail(SaleBackRequestDetail saleBackRequestDetail);

    /**
     * 删除销售退货申请详情
     * 
     * @param id 销售退货申请详情主键
     * @return 结果
     */
    public int deleteSaleBackRequestDetailById(Integer id);

    /**
     * 批量删除销售退货申请详情
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSaleBackRequestDetailByIds(Integer[] ids);
}
